package com.hl.springboot4.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName Article
 * @Description TODO
 * @Author libowen
 * @Date 2025年03月03日 9:57
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Article {
    private int id;
    private String name;
    private String author;
    private String introduce;
    private int readNum;
    private String imageUrl;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    private int tid;

    // 一对一
    private ArticleType articleType;
}
